Skip to main content
POST
/
api
/
portrait
/
effects
/
face-beauty-pro
Face Beauty Pro
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/face-beauty-pro \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=sync \
  --form whitening=50 \
  --form smoothing=50 \
  --form thinface=50 \
  --form shrink_face=50 \
  --form enlarge_eye=50 \
  --form remove_eyebrow=50 \
  --form 'filter_type=<string>' \
  --form image=@example-file
{
"request_id": "",
"log_id": "",
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"task_type": "sync",
"result": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type. <li>sync: Synchronous tasks.</li> <li>async: Asynchronous tasks.</li>

Example:

"sync"

image
file
whitening
integer

Whitening Degree. 0 means no whitening effect, 100 represents the highest degree.

Example:

"50"

smoothing
integer

Smoothing Degree. 0 means no smoothing effect, 100 represents the highest degree.

Example:

"50"

thinface
integer

Face Slimming Degree. 0 means no face slimming effect, 100 represents the highest degree.

Example:

"50"

shrink_face
integer

Small Face Degree. 0 means no small face effect, 100 represents the highest degree.

Example:

"50"

enlarge_eye
integer

Big Eyes Degree. 0 means no big eyes effect, 100 represents the highest degree.

Example:

"50"

remove_eyebrow
integer

Eyebrow Removal Degree. 0 means no eyebrow removal effect, 100 represents the highest degree.

Example:

"50"

filter_type
string

Filter Effects. <li>1: Black and White.</li> <li>2: Calm.</li> <li>3: Sunny Day.</li> <li>4: Journey.</li> <li>5: Beautify Skin.</li> <li>6: Hong Kong Style.</li> <li>7: Aesthetic.</li> <li>8: Lovely.</li> <li>9: New York.</li> <li>10: Sakura.</li> <li>11: Seventeen.</li> <li>12: Soft Light.</li> <li>13: Afternoon Tea.</li> <li>14: Brighten Skin.</li> <li>15: Chaplin.</li> <li>16: Floral.</li> <li>17: Memories.</li> <li>18: Ice Beauty.</li> <li>19: Paris.</li> <li>20: Time.</li> <li>21: LOMO.</li> <li>22: Old Times.</li> <li>23: Early Spring.</li> <li>24: Story.</li> <li>25: Abao Color.</li> <li>26: Fill Light.</li> <li>27: Warm.</li> <li>28: Gorgeous.</li> <li>29: Lavender.</li> <li>30: Chanel.</li> <li>31: Prague.</li> <li>32: Old Dreams.</li> <li>33: Peach Blossom.</li> <li>34: Pink.</li> <li>35: Misty Rain.</li>

Response

200 - application/json

Success

The response is of type object.